package com.zunipe.trainticketsystem.database.entity;

import java.io.Serializable;

public class Order {
    private Integer id;
    private Integer trainId;
    private Integer userId;
    private String orderNumber;
    private String time;
    private String status;
    private Double price;

    public Order() {
    }

    public Order(Integer trainId, Integer userId, String orderNumber, String time, String status, Double price) {
        this.trainId = trainId;
        this.userId = userId;
        this.orderNumber = orderNumber;
        this.time = time;
        this.status = status;
        this.price = price;
    }

    public Order(Integer id, Integer trainId, Integer userId, String orderNumber, String time, String status, Double price) {
        this.id = id;
        this.trainId = trainId;
        this.userId = userId;
        this.orderNumber = orderNumber;
        this.time = time;
        this.status = status;
        this.price = price;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public Order setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
        return this;
    }

    public String getStatus() {
        return status;
    }

    public Order setStatus(String status) {
        this.status = status;
        return this;
    }

    public Double getPrice() {
        return price;
    }

    public Order setPrice(Double price) {
        this.price = price;
        return this;
    }

    public Integer getId() {
        return id;
    }

    public Order setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getTrainId() {
        return trainId;
    }

    public Order setTrainId(Integer trainId) {
        this.trainId = trainId;
        return this;
    }

    public Integer getUserId() {
        return userId;
    }

    public Order setUserId(Integer userId) {
        this.userId = userId;
        return this;
    }

    public String getTime() {
        return time;
    }

    public Order setTime(String time) {
        this.time = time;
        return this;
    }
}
